﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Security;

namespace System.Peppers.Win32
{
    [SuppressUnmanagedCodeSecurity]
    internal class Gdi32
    {
        protected const string DLL = "gdi32.dll";

        [DllImport(DLL, ExactSpelling = true)]
        public static extern bool DeleteObject(IntPtr hObject);

        [DllImport(DLL, CharSet = CharSet.Auto, ExactSpelling = true)]
        public static extern int GetDeviceCaps(HandleRef hDC, DeviceCap nIndex);

        [DllImport(DLL, CharSet = CharSet.Auto)]
        public static extern IntPtr CreateDC(string lpszDriver, string lpszDeviceName, string lpszOutput, HandleRef devMode);

        [DllImport(DLL, CharSet = CharSet.Auto)]
        public static extern bool DeleteDC(HandleRef hDC);

        protected Gdi32() { }
    }
}
